package com.prd.biz;

import com.prd.config.IdGeneratorSnowflake;
import com.prd.util.CommonUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


/**
 * @Author lizhaoyi
 * @date 2023/11/6 22:01
 * Description:
 */

@SpringBootTest
@Slf4j
@RunWith(SpringRunner.class)
public class test {

    @Autowired
    private IdGeneratorSnowflake idGeneratorSnowflake;

    @Test
    public void getId(){
        System.out.println(idGeneratorSnowflake.snowflakeId());
    }
}
